home *** CD-ROM | disk | FTP | other *** search
/ Best of Shareware / Best of PC Windows Shareware 1.0 - Wayzata Technology (7111) (1993).iso / mac / DOS / CAD_CAM / A7221V1B / TERMINAT.H < prev   
C/C++ Source or Header  |  1992-03-12  |  2KB  |  47 lines

  1. /*
  2.    Module:  terminat.h
  3.    Date:    3/9/92
  4.    Version: 1.0b
  5.    Author:  Dave Lutz
  6.    Email:   lutz@psych.rochester.edu
  7.    Copyright: 1992 University of Rochester, Psychology Dept.
  8.  
  9.    Disclaimer:  This software is distributed free of charge.  As such, it
  10.                 comes with ABSOLUTELY NO WARRANTY.  The user of the software
  11.                 assumes ALL RISKS associated with its use.
  12.  
  13.                 Your rights to modify and/or distribute this software are
  14.                 outlined in the file ADI7221.DOC.
  15.  
  16.    Purpose: This module provides the function prototype for the function used 
  17.             to terminate the program due to an error.
  18.  
  19.    Functions Provided:
  20.  
  21.         terminate
  22.  
  23. */
  24.  
  25.  
  26. /*
  27.    Function: terminate
  28.    Purpose:  terminate the program after an error has occurred.
  29.  
  30.    Pre: exitcode is the code that should be supplied to the exit function.
  31.         infilep is a pointer to a pointer to a PLTFILE. 
  32.         *infilep either points to a PLTFILE that has been opened for reading 
  33.         or is a NULL pointer.
  34.         outfilep is a pointer to a pointer to a PLTFILE.
  35.         *outfilep either points to a PLTFILE that has been opened for writing 
  36.         or is a NULL pointer.
  37.         message is a pointer to an ascii string indicating the type of error
  38.         that occured.
  39.  
  40.    Post:  The string in message is printed to stderr.
  41.           An attempt is made to close *infilep.
  42.           An attempt is made to close *outfilep.
  43.           The program is terminated with the code found in exitcode.
  44. */
  45. void terminate (int exitcode, PLTFILE **infilep, PLTFILE **outfilep, 
  46.                 char *message);
  47.